package org.dk.pageInfo;

import java.io.Serializable;
import java.util.List;

public class PageInfo2<T> implements Serializable {
    private Integer pageNum;
    private Integer pageSize;
    private long total;
    private Integer lastPage;
    private List<T> list;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public Integer getLastPage() {
        return lastPage;
    }

    public void setLastPage(Integer lastPage) {
        this.lastPage = lastPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public PageInfo2(Integer pageNum, Integer pageSize, long total, Integer lastPage, List<T> list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.lastPage = lastPage;
        this.list = list;
    }

    public PageInfo2() {
    }
}
